package com.example.maple.weatherapp.data;

import android.util.LruCache;

import com.example.maple.weatherapp.model.baiduModel.BaiduWeatherModel;
import com.example.maple.weatherapp.model.k780Model.K780WeatherModel;

/**
 * 这里使用单例存放百度数据以及k480请求过来的数据对象
 * Created by maple on 2016/8/9.
 */
public class DataInfo {


	private BaiduWeatherModel mBaiduWeatherModel = null;
	private K780WeatherModel mK780WeatherModel = null;


	private DataInfo() {

	}



	public static DataInfo getDataInfoInstance() {

		return DataInfoHolder.sDataInfo;
	}

	private static class DataInfoHolder{
		private static final DataInfo sDataInfo = new DataInfo();
	}

	public BaiduWeatherModel getBaiduWeatherModel() {
		return mBaiduWeatherModel;
	}

	public void setBaiduWeatherModel(BaiduWeatherModel baiduWeatherModel) {
		mBaiduWeatherModel = baiduWeatherModel;
	}

	public K780WeatherModel getK780WeatherModel() {
		return mK780WeatherModel;
	}

	public void setK780WeatherModel(K780WeatherModel k780WeatherModel) {
		mK780WeatherModel = k780WeatherModel;
	}
}
